package com.huilian.iotbox.data.service;

import com.github.pagehelper.PageInfo;
import com.huilian.iotbox.data.dto.CommodityStockRecordDto;
import com.huilian.iotbox.data.vo.CommodityStockRecordVo;

import java.util.List;

public interface CommodityStockRecordCommonService {
    int add(CommodityStockRecordDto commodityStockRecordDto);

    PageInfo<CommodityStockRecordVo> findStockRecord(CommodityStockRecordDto commodityStockRecordDto) throws Exception;

    List<CommodityStockRecordVo> findStockRecordData(CommodityStockRecordDto commodityStockRecordDto);

    void intoRecord(CommodityStockRecordDto commodityStockRecordDto) throws Exception;

    void outRecord(CommodityStockRecordDto commodityStockRecordDto) throws Exception;

    void returnRecord(CommodityStockRecordDto commodityStockRecordDto) throws Exception;

    PageInfo<CommodityStockRecordVo> findInventory(CommodityStockRecordDto commodityStockRecordDto);
}
